<template>
  <div>
    <el-table :data="tableSource" style="width: 100%">
      <el-table-column
        v-for="(val, key) in tableTitle"
        :key="key"
        :prop="key"
        :label="val.label"
        width="180"
      >
        <template slot-scope="scope"
          ><div>{{ scope.row[key] }}</div></template
        >
      </el-table-column>
      <el-table-column
        v-if="tablePow && tablePow.length > 0"
        label="操作"
        :width="65 * tablePow.length + 10 || 0"
        fixed="right"
      >
        <template slot-scope="scope"
          ><TableEdit
            :rowData="scope.row"
            :power="tablePow"
          ></TableEdit></template
      ></el-table-column>
    </el-table>
  </div>
</template>

<script>
import TableEdit from "../tableEdit";
export default {
  name: "userManage",
  components: { TableEdit },
  props: ["tableSource", "tableTitle", "tablePow"],
  data() {
    return {};
  },
};
</script>

<style lang="less" scoped>
</style>